import { $html } from "../index"


export const addAccount = async (data?: Object) => {
  const res = await $html.post("/Accounting/addAccount", data)
  return res
}

export const putSystem = async (url:any) => {
  const res = await $html.put("/System/updateSystem/"+url)
  return res
}

export const getWeekData = async (query?: Object) => {
  const res = await $html.get("/Accounting/findWeekData", {
    params: {
      ...query
    }
  })
  return res
}

